package com.zzy.jkb.service.impl;

import com.zzy.jkb.api.CommonResult;
import com.zzy.jkb.entity.ScanHistory;
import com.zzy.jkb.mapper.ScanHistoryMapper;
import com.zzy.jkb.service.IScanHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzy.jkb.vo.ScanHistoryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 扫码记录 服务实现类
 * </p>
 *
 * @author zzy
 * @since 2023-02-03
 */
@Service
public class ScanHistoryServiceImpl extends ServiceImpl<ScanHistoryMapper, ScanHistory> implements IScanHistoryService {


    @Override
    public List<ScanHistoryVo> getScanHistory(String userId) {
        List<ScanHistoryVo> scanHistoryVo = this.baseMapper.getScanHistory(userId);
        return scanHistoryVo;
    }
}
